remove loop protocol - moved to php