fixed many minor issues specific to linux server