add screen resolution function
refactor envvars and add ruby to path