exceptions and bug fixing on server