Lib extraction

extract complex controller logic to lib