moving proxy start to correct code block