alias psave {
    if (fexist($bx_savefile) == 1) {
	@ unlink($bx_savefile)
    }
    @ :open_bx_savefile = open($bx_savefile W T)
    if (open_bx_savefile != [-1]) {
	@ write($open_bx_savefile ## $p.vers2 savefile - saved $stime($time()) ##)
	@ write($open_bx_savefile @ auto_cycle = [$auto_cycle])
	@ write($open_bx_savefile @ auto_join_on_invite = [$auto_join_on_invite])
	@ write($open_bx_savefile @ autoop_operators = [$autoop_operators])
	@ write($open_bx_savefile @ auto_response_beep = [$auto_response_beep])
	@ write($open_bx_savefile @ away_usermodes = [$away_usermodes])
	@ write($open_bx_savefile @ back_usermodes = [$back_usermodes])
	@ write($open_bx_savefile @ dcc_log = [$dcc_log])
	@ write($open_bx_savefile @ dcc_logfile = [$dcc_logfile])
	@ write($open_bx_savefile @ default_away_reason = [$default_away_reason])
	@ write($open_bx_savefile @ default_back_reason = [$default_back_reason])
	@ write($open_bx_savefile @ default_channel_modes = [$default_channel_modes])
	@ write($open_bx_savefile @ default_encode_pass = [$default_encode_pass])
	@ write($open_bx_savefile @ email = [$email])
	@ write($open_bx_savefile @ encode_passwords = [$encode_passwords])
	@ write($open_bx_savefile @ encryption = [$encryption])
	@ write($open_bx_savefile @ extra_away_logging = [$extra_away_logging])
	@ write($open_bx_savefile @ keepnick = [$keepnick])
	@ write($open_bx_savefile @ keepnick_nick = [$keepnick_nick])
	@ write($open_bx_savefile @ mirc_color_kick = [$mirc_color_kick])
	@ write($open_bx_savefile @ nick_comp = [$nick_comp])
	@ write($open_bx_savefile @ nick_comp_character = [$nick_comp_character])
	@ write($open_bx_savefile @ pager = [$pager])
	@ write($open_bx_savefile @ startup_ansi = [$startup_ansi])
	@ write($open_bx_savefile @ topicbar = [$topicbar])
	@ write($open_bx_savefile @ topicbar_type = [$topicbar_type])
	@ write($open_bx_savefile @ user_chans = [$user_chans])
    }{
	pecho ERROR opening file $fix.c1($bx_savefile)
    }
    if (close($open_bx_savefile) != [-1]) {
	pecho settings successfully saved to $fix.c1($bx_savefile)
    }{
	pecho ERROR closing file $fix.c1($bx_savefile)
    }
}
