server and ui scripts