fixes static file serving and enables post variables