php loader basic functionality