remove useless debugging
set home variable if not present