Fixed admin path and moved agent logic to bin