moved some functions out (act stuff) and in (wordpress stuff)